package com.javablog.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class CategoryDto {
    
    private Long id;
    
    @NotBlank(message = "分类名称不能为空")
    @Size(min = 2, max = 50, message = "分类名称长度必须在2到50个字符之间")
    private String name;
    
    private String description;
    
    private int articleCount;
} 